#ifndef _ZENGL_FONT_H_
#define _ZENGL_FONT_H_

#include "zglConfig.h"
#include "zglEngine.h"

namespace sgui
{
namespace engine
{

class zglEngine;

class zglFont: public sFont
{
private:
	zglPFont				m_font;
    zglEngine&				m_engine;
	const preset::sFontPreset&		m_preset;
public:
	void draw(const engine::sDrawContext& context, const std::wstring& text,
			Color color = 0xFFFFFFFF) const;
	math::sPointf getSize(const std::wstring& text) const;

	void update(const preset::sPreset& preset);

	zglFont(zglEngine& engine, const res::sFontResource& res, const preset::sFontPreset& preset);
};

};
};

#endif